package com.star.example.provider;

/**
 * packageName com.star.example.provider
 *
 * @author zerostart
 * @className EasyProviderExample
 * @date 2024/11/17
 * @description
 */

import com.star.example.common.service.UserService;
import com.star.rpc.registry.LocalRegistry;
import com.star.rpc.server.HttpServer;
import com.star.rpc.server.VertxHttpServer;


/**
 * 简单服务提供者示例
 */
public class EasyProviderExample {

    public static void main(String[] args) {


        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8080);
    }
}
